package com.example.campus.dao.model.shiro;



import com.example.campus.common.ValidationMessageConstants;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Permission {
    @NotNull(message =  "id" + ValidationMessageConstants.SHOULD_NOT_BE_NULL )
    Long id;
    @NotNull(message = "name" + ValidationMessageConstants.SHOULD_NOT_BE_NULL)
    String name;
    String code;
    @NotNull(message = "url" + ValidationMessageConstants.SHOULD_NOT_BE_NULL)
    String url;
    String order;
}
